set(SOURCES DVDFactorySubtitle.cpp
            DVDSubtitleLineCollection.cpp
            DVDSubtitleParserMicroDVD.cpp
            DVDSubtitleParserMPL2.cpp
            DVDSubtitleParserSami.cpp
            DVDSubtitleParserSubrip.cpp
            DVDSubtitleParserVplayer.cpp
            DVDSubtitleStream.cpp
            DVDSubtitlesLibass.cpp
            DVDSubtitleParserSSA.cpp
            DVDSubtitleTagMicroDVD.cpp
            DVDSubtitleTagSami.cpp)

set(HEADERS DVDFactorySubtitle.h
            DVDSubtitleLineCollection.h
            DVDSubtitleParser.h
            DVDSubtitleParserMPL2.h
            DVDSubtitleParserMicroDVD.h
            DVDSubtitleParserSSA.h
            DVDSubtitleParserSami.h
            DVDSubtitleParserSubrip.h
            DVDSubtitleParserVplayer.h
            DVDSubtitleStream.h
            DVDSubtitleTagMicroDVD.h
            DVDSubtitleTagSami.h
            DVDSubtitlesLibass.h
            DllLibass.h)

core_add_library(dvdsubtitles)

if(ENABLE_INTERNAL_FFMPEG)
  add_dependencies(dvdsubtitles ffmpeg)
endif()
